The Mac OS 8.5 Control Manager provides the following function for validating the content of an editable text control:
MyControlEditTextValidationProc